package com.study.spmongodb.wwj.thread3.char01;

interface I {
    int a = 0;
}

/**
 * @author study
 * @version 1.0
 * @date 2020/12/10 11:26
 */
public class ClassActiveUse {

    public static void main(String[] args) throws ClassNotFoundException {
        // new Obj();
        System.out.println(I.a);
        // System.out.println(Obj.c);
        // Obj.pringSalary();
        // Class.forName("com.study.spmongodb.wwj.thread3.char01.Obj");

        System.out.println(Child.age);
    }
}

class Obj {
    public static long c = 1_0000;

    static {
        System.out.println("obj 被初始化");
    }

    public static void pringSalary() {
        System.out.println("pringSalary");
    }
}

class Child extends Obj {
    public static int age = 32;

    static {
        System.out.println("……Child……");
    }
}
